@import url("./reset.less");

// 根容器大小
#root {
  height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* scroll bar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-corner {
  background-color: transparent;
}

/* nprogress */
// #nprogress .bar {
//   background: var(--hooks-colorPrimary) !important;
// }
// #nprogress .spinner-icon {
//   border-top-color: var(--hooks-colorPrimary) !important;
//   border-left-color: var(--hooks-colorPrimary) !important;
// }
// #nprogress .peg {
//   box-shadow:
//     0 0 10px var(--hooks-colorPrimary),
//     0 0 5px var(--hooks-colorPrimary) !important;
// }

/* react-transition-group  .fade */
.fade-enter {
  opacity: 0;
  transform: translateX(-40px);
}
.fade-enter-active,
.fade-exit-active {
  opacity: 1;
  transition: all 0.3s ease-in-out;
  transform: translateX(0);
}
.fade-exit {
  opacity: 0;
  transform: translateX(40px);
}
